#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include<QDir>
#include<QDomComment>
#include<QFile>
#include<QDebug>
#include<QMessageBox>




QT_BEGIN_NAMESPACE
namespace Ui { class Dialog; }
QT_END_NAMESPACE

class Dialog : public QDialog
{
    Q_OBJECT

public:
    Dialog(QWidget *parent = nullptr);
    ~Dialog();
    void writeXml();
    void readXml();

    bool openfile(QString filename);
    void readrootxml(QDomNodeList& ls);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::Dialog *ui;
    QFile my_file;
    QString currentpath;
    QString currentname;
};
#endif // DIALOG_H
